export interface mockInterfaceModel {
  url: string
  method: string
  response: Function
}
export function resultSuccess<T>(result: T, { message = 'ok' } = {}) {
  return {
    code: 0,
    result,
    message,
    type: 'success'
  }
}

export function resultError(
  message = 'Request failed',
  { code = -1, result = null } = {}
) {
  return {
    code,
    result,
    message,
    type: 'error'
  }
}

export enum RoleEnum {
  SUPER = 'super',
  VISITOR = 'visitor'
}

export enum SexEnum {
  FEMALE = 'female',
  MALE = 'male'
}
export interface AccountModel {
  userid: string
  userName: string
  role: string
  sex: string
  phone: string
  address: string
}


